package com.zp.soft2.ktvvod;

import java.util.ArrayList;
import java.util.Scanner;

public class Ktv {
    private static ArrayList<String> list = new ArrayList();
    private static Scanner scanner = new Scanner(System.in);
    public static void main(String[] args) {


        KtvSond ktvSond = new KtvSond();

        boolean flag = true;

        while (flag){
        System.out.println("---------欢迎来到点歌系统----------");
        System.out.println("1.添加歌曲至列表");
        System.out.println("2.将歌曲置顶");
        System.out.println("3.将歌曲前移一位");
        System.out.println("4.退出");
        System.out.println("5.查看歌曲列表");
        System.out.println("6.删除歌曲信息");



        String string = scanner.nextLine();
        switch (string){
        case "1":{
            ktvSond.addMusic();
            break;
        }
        case "2":{
             ktvSond.addTop();
            break;
        }
        case "3":{
            ktvSond.addBefore();
            break;
        }
        case "4":{
            System.out.println("-------------");
            System.out.println("---你已退出---");
            flag = false;
            break;
        }
        case "5":{
           ktvSond.Music();
            break;
        }
        case "6":{
            KtvSond.MusicDelete();
            break;
        }


        }

    }


    }
}
